home *** CD-ROM | disk | FTP | other *** search
/ F1 Licenseware / F1 Licenseware - Volume 1.iso / disks / 028.dms / 028.adf / Tutorials / Tutorial_1 < prev    next >
Text File  |  1992-02-26  |  5KB  |  140 lines

  1.                Tutorial One
  2.  
  3.             An introduction to the Shell
  4.  
  5. Remember, you type the text in colour at the CLI prompt at the bottom
  6. of the screen.
  7.  
  8. Your first Shell command
  9.  
  10. Actually, this should be at least your second command because you should 
  11. have backed up this disk.  If you haven't, do it now!.  Read
  12. the section titled `Double Click Me First'.  It is important to make a copy
  13. of this disk because you could easily delete important files from the 
  14. C.L.Index disk or even wipe it totally!
  15.  
  16. Right.  Ensure that you are using a backup of the C.L.Index disk, 
  17. and that it is write-protected.  If you don't know what that means,
  18. take out the disk and make sure that the black tab on the disk is 
  19. positioned in a way that there is a hole in the disk.  If a disk is write
  20. protected you can't accidentally format it or delete files from it.
  21.  
  22. So your first CLI command will be Format.  This is so you can make a 
  23. special disk to try out all the tutorials on.  The Format command, like
  24. nearly all commands, has arguments.  These are words typed after the
  25. command that tell it how to behave.  In this case it tells Format what the
  26. disk's name is.  Please find a blank disk now and make sure it is 
  27. write-enabled.  This means the black tab covers the hole in the disk.  Once
  28. done, please click inside the Shell window at the bottom of the screen and
  29. type the following.
  30.  
  31.     Format ?
  32.  
  33. The following words come up on the screen...
  34.  
  35.     DRIVE/K/A,NAME/K/A,FFS/S,NOICONS/S,QUICK/S
  36.  
  37. These are the options for the command.  Please remove the C.L.Index disk 
  38. and place your blank disk into the internal disk drive.  Now type at the
  39. prompt...
  40.  
  41.     DRIVE Df0: NAME Tutorial
  42.  
  43. And a message will appear saying...
  44.  
  45.     Insert disk to be formatted in drive Df0: and press RETURN
  46.  
  47. If you make a mistake, type Format ? again and then retype the text.
  48. Make sure that the disk in the drive is indeed blank, and is write-enabled 
  49. then hit return.  While you wait for it to be formatted, you can read this
  50. information.
  51.  
  52. Formatting tells the blank disk that it belongs to an Amiga and not any 
  53. other computer.  Amiga disks can hold 880 kilobytes of data, whereas most
  54. other computer disks hold less - usually only 620 kilobytes.  The capacity
  55. of a disk tells you how much data it can hold.  The bigger the disk, the 
  56. more files you can store on it.
  57.  
  58. Once the disk has finished formatting, take it out of the drive and replace
  59. the C.L.Index disk.  Type the following at the CLI prompt...
  60.  
  61.     Info ?
  62.  
  63. And then put the disk you have just made, which we will now refer to as
  64. Tutorial: into the disk drive.  Type Df0: at the prompt and some
  65. text whizzes through the Shell window.  Resize the window so you can read
  66. it, using the method described earlier.
  67.  
  68. You will notice that the size of the disk is only 837K.  This is because
  69. the Amiga's filing system uses some of the disk.  If you had included the
  70. option FFS on your disk, then size would have read 880K (or a number close
  71. to that amount).  FFS stands for Fast File System and is a special system
  72. that lets you fit more on a disk.  Unfortunately, an FFS disk can't be read
  73. by an old Amiga so is not used very often.
  74.  
  75. Now replace the C.L.Index disk into the drive and type the following line
  76. at the prompt...
  77.  
  78.     Makedir Tutorial:Drawer1
  79.  
  80. And a new drawer called Drawer1 is created on your Tutorial disk.  You
  81. will have to swap disks during the execution of this command.  Put the 
  82. C.L.Index disk back in the drive.  Now you are going to have to swap disks
  83. every time you make a new drawer on Tutorial:, which will be very boring 
  84. and time consuming, so we are going to put the command Makedir into RAM:
  85. (your computer's memory) and run it from there.  That means we don't have to
  86. swap disks at all!  Type
  87.  
  88.     Resident C:Makedir
  89.  
  90. This puts Makedir into RAM:.  C: is a quick way of referring to your boot 
  91. disk's (the disk you loaded into your computer first) C drawer.  This is 
  92. the name of the drawer where all the commands are found - C stands for 
  93. Commands.
  94.  
  95. Now put Tutorial: into the disk drive and type the following lines.  After
  96. each line press the RETURN key.
  97.  
  98.     CD Tutorial:
  99.     Makedir S
  100.     Makedir C
  101.     Makedir Libs
  102.     Makedir Devs
  103.     CD SYS:
  104.  
  105. CD tells the computer what the current directory is.  This is the drawer
  106. where all commands you type are aimed.  You CD to the C.L.Index last.  SYS:
  107. is a short way of referring to the boot disk.
  108.  
  109. Your next step will be to make sure all the drawers are in place on the
  110. disk.  Type this line into the CLI window then expand it so you can read 
  111. the text.  You are making sure that all the drawers you have just made are
  112. on the disk.
  113.  
  114.     Dir Tutorial:
  115.  
  116. The final thing we are going to do in this tutorial is rename the first
  117. drawer (or directory) that we made to something more useful for the disk.
  118. Type
  119.  
  120.     Rename Tutorial:Drawer1 TO Tutorial:L
  121.  
  122. Checklist
  123.  
  124. Now you can...
  125.  
  126.     o Format a blank disk with a name of your choice.
  127.     o Get information on a disk
  128.     o Make a CLI command resident in memory to avoid disk swapping
  129.     o Make any number of drawers on a disk with a name of your choice
  130.     o Change the current directory
  131.     o Get a list of the files and directories on a disk
  132.     o Rename a drawer
  133.  
  134. Now either turn off your computer for the day or continue.  The next 
  135. tutorial you must follow is Tutorial 2.
  136.  
  137.  
  138.  
  139.  
  140.